<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@include file="/common/common.jspf" %>
    <script type="text/javascript" src="${ctx}/js/sys/content/edit.js"></script>

    <style type="text/css">
        .col-sm-3 {
            width: 15%;
            float: left;
        }

        .col-sm-9 {
            width: 85%;
            float: left;
        }
    </style>
</head>
<body>
<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post" action="${ctx}/sys/content/editEntity.shtml">
    <input type="hidden" class="form-control" value="${sysContent.id}" name="sysContentFormMap.id" id="id">
    <section class="panel panel-default">
        <div class="panel-body">
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">类别</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入类别" name="sysContentFormMap.category" value="${sysContent.category}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">标题</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入标题" name="sysContentFormMap.title" style="width: 60%;" value="${sysContent.title}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">显示顺序</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入显示顺序" name="sysContentFormMap.display_order" value="${sysContent.display_order}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">内容</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" name="sysContentFormMap.body" style="width: 60%;" rows="4">${sysContent.body}</textarea>
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label">文本1</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入文本1" name="sysContentFormMap.str1" style="width: 60%;" value="${sysContent.str1}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">文本2</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入文本2" name="sysContentFormMap.str2" style="width: 60%;" value="${sysContent.str2}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">文本3</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入文本3" name="sysContentFormMap.str3" style="width: 60%;" value="${sysContent.str3}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">文本4</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入文本4" name="sysContentFormMap.str4" style="width: 60%;" value="${sysContent.str4}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">文本5</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入文本5" name="sysContentFormMap.str5" style="width: 60%;" value="${sysContent.str5}">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">多行文本1</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" name="sysContentFormMap.mstr1" style="width: 60%;" rows="4">${sysContent.mstr1}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">多行文本2</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" name="sysContentFormMap.mstr2" style="width: 60%;" rows="4">${sysContent.mstr2}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">多行文本3</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" name="sysContentFormMap.mstr3" style="width: 60%;" rows="4">${sysContent.mstr3}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">多行文本4</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" name="sysContentFormMap.mstr4" style="width: 60%;" rows="4">${sysContent.mstr4}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">多行文本5</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" name="sysContentFormMap.mstr5" style="width: 60%;" rows="4">${sysContent.mstr5}</textarea>
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">图片1</label>
                </div>
                <div class="col-sm-9">
                    <img class="system-upload-img" src="${ctx}${sysContent.pic1}"></imgsrc>
                    <input type="file" class="form-control system-upload-field" data-for="sysContentFormMap.pic1" placeholder="请选择图片" name="pic1file" style="width: 60%;">
                    <input type="hidden" name="sysContentFormMap.pic1" value="${sysContent.pic1}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">图片2</label>
                </div>
                <div class="col-sm-9">
                    <img class="system-upload-img" src="${ctx}${sysContent.pic2}"></imgsrc>
                    <input type="file" class="form-control system-upload-field" data-for="sysContentFormMap.pic2" placeholder="请选择图片" name="pic2file" style="width: 60%;">
                    <input type="hidden" name="sysContentFormMap.pic2" value="${sysContent.pic2}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">图片3</label>
                </div>
                <div class="col-sm-9">
                    <img class="system-upload-img" src="${ctx}${sysContent.pic3}"></imgsrc>
                    <input type="file" class="form-control system-upload-field" data-for="sysContentFormMap.pic3" placeholder="请选择图片" name="pic3file" style="width: 60%;">
                    <input type="hidden" name="sysContentFormMap.pic3" value="${sysContent.pic3}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">图片4</label>
                </div>
                <div class="col-sm-9">
                    <img class="system-upload-img" src="${ctx}${sysContent.pic4}"></imgsrc>
                    <input type="file" class="form-control system-upload-field" data-for="sysContentFormMap.pic4" placeholder="请选择图片" name="pic4file" style="width: 60%;">
                    <input type="hidden" name="sysContentFormMap.pic4" value="${sysContent.pic4}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">图片5</label>
                </div>
                <div class="col-sm-9">
                    <img class="system-upload-img" src="${ctx}${sysContent.pic5}"></imgsrc>
                    <input type="file" class="form-control system-upload-field" data-for="sysContentFormMap.pic5" placeholder="请选择图片" name="pic5file" style="width: 60%;">
                    <input type="hidden" name="sysContentFormMap.pic5" value="${sysContent.pic5}">
                </div>
            </div>
        </div>
        <footer class="panel-footer text-right bg-light lter">
            <button type="submit" class="btn btn-success btn-s-xs">保存</button>
        </footer>
    </section>
</form>
</body>
</html>
